package Day02;

public class Day02replaceSpace {
    public  String replaceSpace(String s){
        StringBuilder sb = new StringBuilder();
        char[] c = s.toCharArray();
        for (char c1 : c) {
            sb.append(String.valueOf(c1).equals(" ")? "%20":String.valueOf(c1));
        }
        return sb.toString();
    }
}
